# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-stevedore
_pkgname=stevedore
pkgver=1.31.0
pkgrel=4
pkgdesc='Manage dynamic plugins for Python applications.'
url='https://pypi.org/project/stevedore/#files'
arch=('any')
license=('Apache')
depends=('python2' 'python2-six')
makedepends=('python2-setuptools' 'python2-pbr')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('07b641b63766eddd094690acad81c1417a9721d785f81ca11da0ec2afed455d1beedfea5be4dcfd833d9379d650b193e26207ec0411d274bdf399ea2acd321a0')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

